package com.muke.spring.demo4;

import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;
import org.springframework.transaction.support.TransactionTemplate;

/**
* Created By lijiliang on 2018年7月16日 下午10:30:36
*/
@Transactional
public class AccountServiceImpl implements AccountService {
	private AccountDao accountDao;
	
	
	


	public void setAccountDao(AccountDao accountDao) {
		this.accountDao = accountDao;
	}




	@Override
	public void transfer(String out, String in, Double money) {
		accountDao.outMoney(out, money);
		int i=2/0;
		accountDao.inMoney(in, money);
	}

}
